
package com.wwy.monitor.mapper.tddl;

import com.wwy.monitor.model.tddl.dto.MonitorAppDTO;
import com.wwy.monitor.model.tddl.query.MonitorAppQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author tianquan.ld
 * @version V1.0
 * <p>Description: çæ§åºç¨ mapper</p>
 * @date 2019-10-29 15:59
 */
@Repository
public interface MonitorAppMapper {
    /**
     * æ°å»º
     *
     * @param monitorAppDto
     * @return
     */
    int insert(MonitorAppDTO monitorAppDto);

    /**
     * å é¤
     *
     * @param id
     * @return
     */
    int deleteById(@Param("id") Long id);

    /**
     * æ´æ°
     *
     * @param monitorAppDto
     * @return
     */
    int updateById(MonitorAppDTO monitorAppDto);

    /**
     * æ´æ°åºç¨ç¶æ
     *
     * @param monitorAppDTO æ¡ä»¶
     * @return æ¡æ°
     */
    int updateStatusById(MonitorAppDTO monitorAppDTO);

    /**
     * æ¥è¯¢è§å
     *
     * @return
     */
    List<MonitorAppDTO> selectByQuery(MonitorAppQuery query);

    /**
     * æ ¹æ®idæ¥è¯¢
     *
     * @param id
     * @return
     */
    MonitorAppDTO selectById(@Param("id") Long id);

    /**
     * æ»æ°
     *
     * @param query
     * @return
     */
    Integer count(MonitorAppQuery query);

    /**
     * æ ¹æ®aoneAppIdæ¥è¯¢åºç¨
     */
    MonitorAppDTO selectByAoneAppId(MonitorAppDTO query);

    /**
     * æ ¹æ®appNameæ¥è¯¢åºç¨
     */
    MonitorAppDTO selectByAppName(MonitorAppDTO query);

    /**
     * æ ¹æ®appNameæ¥è¯¢åºç¨(List)
     */
    List<MonitorAppDTO> selectListByAppName(MonitorAppQuery query);
}